<script lang="ts" setup>
  import channelStore from '../store/modules/channel';
  const channels = channelStore()
  </script>

<template>
  <ul class="catagtory">
    <li 
     @click="channels.setCurId(item.id)"
     :class="{select: item.id===channels.curId}" v-for="item in channels.channels" :key="item.id">{{item.name}}</li>
  </ul>
</template>

<style scoed lang="less"></style>